/**
 * Copyright(c) 2014 Xunton Solutions
 *
 * History:
 *   15-4-23 下午2:38 Created by dwzhang
 */
package com.jade.bss.service.push.impl;

import java.util.Map;

import com.jade.bss.service.push.AppConfig;
import com.jade.bss.service.push.PushApp;

/**
 * 简单的APP配置。
 *
 * @author <a href="mailto:dwzhang@xunton.com">dwzhang</a> 
 * @version 1.0 15-4-23 下午2:38
 */
public class SimpleAppConfig
        implements AppConfig
{
    protected Map<String, PushApp> appMap;

    public void setAppMap(Map<String, PushApp> appMap)
    {
        this.appMap = appMap;
    }

    public PushApp getApp(String code)
    {
        return appMap.get(code);
    }
}
